def fib(n):
    a, b = 1, 1
    for i in range(3, n+1):
        a, b = b, a+b
    return b


n = int(input())
for i in range(1, n+1):
    print(fib(i), end=' ')
